import request from '@/router/axios'

export function fetchWxEvaluateProblemList(query) {
  return request({
    url: '/mp/wxevaluateproblem/page',
    method: 'get',
    params: query
  })
}

export function addWxEvaluateProblemObj(obj) {
  return request({
    url: '/mp/wxevaluateproblem',
    method: 'post',
    data: obj
  })
}

export function getWxEvaluateProblemObj(id) {
  return request({
    url: '/mp/wxevaluateproblem/' + id,
    method: 'get'
  })
}

export function delWxEvaluateProblemObj(id) {
  return request({
    url: '/mp/wxevaluateproblem/' + id,
    method: 'delete'
  })
}

export function putWxEvaluateProblemObj(obj) {
  return request({
    url: '/mp/wxevaluateproblem',
    method: 'put',
    data: obj
  })
}

// 获取问题列表
export function getQuestionList(){
  return request({
    url: '/mp/wxevaluateproblem/list',
    method: 'get'
  })
}